<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core">

<head>
 	<meta http-equiv="Cache-Control" content="no-cache"/>
	<title> Web rezervacije</title>
</head>

<f:view>
	<h1>Prijavljen korisnik: <h:outputText value="#{users.user.username}" /> </h1>

	<ui:param name="flight" value="#{flights.flight}" />
	<ui:param name="passenger" value="#{passengers.passenger}" />
	
	<h3>Sediste je rezervisano za let: <h:outputText value="#{flight.idLeta}" />
	, od <h:outputText value="#{flight.polaziAerodrom}" />
	, do <h:outputText value="#{flight.odrediste}" />
	, vreme polaska: <h:outputText value="#{flight.vremePolaskaString}" />
	, vreme dolaska: <h:outputText value="#{flight.vremeDolaskaString}" />
	<br/>
	za putnika: <h:outputText value="#{passenger.ime}" />&nbsp;<h:outputText value="#{passenger.prezime}" /></h3>


  	<p><a href="listFlightServlet?listFlight=flights">Spisak svih letova</a></p>

</f:view>

</html>	